<template>
  <BasicDrawer v-bind="$attrs" @register="registerDrawer" title="访问日志详情" width="650px">
    <Description :column="1" :data="jobLogData" @register="registerDescription" />
  </BasicDrawer>
</template>
<script lang="ts" setup>
  import { ref, useAttrs } from 'vue';
  import { BasicDrawer, useDrawerInner } from '/@/components/Drawer';
  import { formDescSchema } from './data';
  import { Description, useDescription } from '/@/components/Description/index';
  const emit = defineEmits(['register']);
  const attrs = useAttrs();
  const jobLogData = ref({});

  const [registerDescription] = useDescription({
    schema: formDescSchema,
    labelStyle: {
      width: '90px'
    }
  });
  const [registerDrawer, { setDrawerProps, closeDrawer }] = useDrawerInner(async (data) => {
    setDrawerProps({ confirmLoading: false });
    jobLogData.value = data.record;
  });
</script>


<style scoped>

</style>./data